package com.ts.api.manage.cms;

import com.ts.framework.domain.cms.CmsPage;
import com.ts.framework.domain.cms.response.CmsPageResult;
import com.ts.framework.domain.cms.response.CmsPostPageResult;
import com.ts.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api(tags = "CMS页面功能接口", description = "负责页面预览,发布")
public interface CmsPreviewPostControllerApi {

    @ApiOperation("CMS页面预览")
    @ApiImplicitParam(name = "pageId", value = "CMS页面预览", dataType = "String", paramType = "path")
    public void previewCmsPage(String pageId);

    @ApiOperation("CMS页面发布")
    @ApiImplicitParam(name = "pageId", value = "CMS页面发布", dataType = "String", paramType = "path")
    public ResponseResult PostCmsPage(String pageId);

    @ApiOperation("添加修改页面信息")
    @ApiImplicitParam(name = "cmsPage", value = "CMS页面对象", dataType = "CmsPage", paramType = "body")
    public CmsPageResult saveCmsPage(CmsPage cmsPage);


    @ApiOperation("一键发布页面")
    public CmsPostPageResult postPageQuick(CmsPage cmsPage);
}
